package com.hgw.Demo05_MediatorPattern.examples;

import com.hgw.Demo05_MediatorPattern.examples.Component;

/**
 * Data time:2021/12/18 17:49
 * StudentID:2019112118
 * Author:hgw
 * Description: 列表框类，充当具体同事类
 */
public class List extends Component {
    @Override
    public void update() {
        System.out.println("列表框增加一项：张无忌.");
    }

    public void select() {
        System.out.println("列表框选中项 ：小龙女.");
    }
}
